package com.sanyue.Tesla;

import org.junit.Test;
import sun.plugin.javascript.navig.Array;

import java.util.Arrays;

/**
 * @author sanyue
 * @version 1.0
 * @description: TODO-tesla
 * @date 2022/2/18 下午3:10
 */
public class Solve {
//  面的是sql-待整理
    @Test
    public void test01(){

    }

    public int solution(int[] A) {
        // write your code in Java SE 8
        Arrays.sort(A);
        for (int i = 0; i < A.length; i++) {
            if (A[i] != i + 1)
                return A[i];
        }
        return A.length + 1;

    }


    @Test
    public void test02(){

    }

    @Test
    public void test03(){

    }

    @Test
    public void test04(){

    }


}
